describe how molecular motion and distance between molecules change as ice is heated to become a liquid and the gas