Dynamics of the IR-to-blue wavelength upconversion in Pr3+-doped yttrium aluminum garnet and LiYF4 crystals.