X-ray absorption near edge structure (XANES) and X-ray Kβ emission spectra in mixed valence manganese spinels