When water changes phase, it gains or loses energy. During which of the following types of phase changes do the particles of water gain energy?