A generalized approach to prediction of two and three phase CO2-hydrocarbon equilibria