Deciphering the heterogeneity in DNA methylation patterns during stem cell differentiation and reprogramming