Phase equilibria of oil, gas and water/brine mixtures from a cubic equation of state and henry's law