Tuning the oxidation states of dopants: a strategy for the modulation of material photoluminescence properties.