Rock-fluid interactions in geothermal reservoir systems and the implications for carbon sequestration