Enabling Active Nanotechnologies by Phase Transition: From Electronics, Photonics to Thermotics