How can you calculate the partial pressure of a gas in a mixture?