Enhancing upconversion luminescence of highly doped lanthanide nanoparticles through phase transition delay