Phase transitions in the system MgO–CO2–H2O during CO2 degassing of Mg-bearing solutions