Fabrication and characterization of a thermal switch