What happens to the kinetic energy of the particles of a substance as the substance changes from a liquid to a gas?