Fluorescence decay route of optical transition calculation for trivalent rare earth ions and its application for Er3+-doped NaYF4 phosphor.