Independent luminescent lifetime and intensity tuning of upconversion nanoparticles by gradient doping for multiplexed encoding.