How are the amount of heat transferred and the change in temperatur of water related?