Development and application of advanced thermodynamic molecular description for complex reservoir fluids containing carbon dioxide and brines