a diagram showing the phases of water and gas exchange between two different types of matter