Thermally Switchable Terahertz Metasurface Devices