The Effects of Brine Species on the Formation of Residual Water in a $$\hbox {CO}_{2}$$CO2–Brine System