What factors affect the solubility of gases in liquids?