A pre-edge analysis of Mn K-edge XANES spectra to help determine the speciation of manganese in minerals and glasses