Structural and mechanistic basis for protein glutamylation by the kinase fold