RNA-directed DNA methylation and demethylation in plants