Enhanced photothermal cooling of nanowires