Distance-weighted neighboring sites models for methylation pattern inheritance