Enhancing Luminescence in Lanthanide-Doped Upconversion Nanoparticles