Stability of the cationic oxidation states in Pr(0.50)Sr(0.50)CoO₃ across the magnetostructural transition by X-ray absorption spectroscopy.