Application of gas chromatographic headspace analysis to the characterization of chemical equilibria in solutions