Modularity of the hydrophobic core and evolution of functional diversity in fold A glycosyltransferases