The GlcN6P cofactor serves multiple catalytic roles in the glmS ribozyme