Excitation Pulse Duration Response of Upconversion Nanoparticles and Its Applications