Structural and functional characterization of the TYW3/Taw3 class of SAM-dependent methyltransferases