when changing state, the temperature of a substance remains constant even though energy is supplied. What happens to the energy supplied?