During which phase transition do the particles lose kinetic energy?