Controlling heat transfer in electronic packaging using thermal switches and high power thermal buffers