Modeling complex patterns of differential DNA methylation that associate with gene expression changes