Photo-triggered capsules based on lanthanide-doped upconverting nanoparticles for medical applications