Mid-infrared detection through ligand-driven local heating in lanthanide-doped nanoparticles | Synapse