transitions between solid, liquid, and gaseous states of a substance occur when conditions of temperature or pressure favor the associated changes in phase. when the temperature of a gas is