Thermo-optical response of colloidal metallic and semiconducting single-walled carbon nanotubes