What happens when water vapor loses energy and its particles begin to slow down?