Mineralogical controls on porosity and water chemistry during O2-SO2-CO2 reaction of CO2 storage reservoir and cap-rock core