A molecular thermometer for nanoparticles for optical hyperthermia