Dynamics of Yb2+ to Yb3+ ion valence transformations in Yb:YAG ceramics used for high-power lasers