what happens to water when heated