Determination of the oxidation state by resonant-Raman scattering spectroscopy