Wetting phenomena associated with CO2 sequestration and low salinity waterflooding