Solid-state thermal transistors