Controlling lanthanide-doped upconversion nanoparticles for brighter luminescence