Entropy change during heat transfer