how does heat transfer from hot to cold?