X-ray absorption spectroscopy and resonant inelastic scattering study of the first lithiation cycle of the Li-ion battery cathode Li(2-x)MnSiO4.