In which phase changes is heat removed?