gases are one of the three phases of a substance