Controlling heat flow in a solid by switching crystal structure dimensionalityJust as an electrical