New method for measuring time-resolved spectra of lanthanide emission using square-wave excitation.