CO2-Soluble Ionic Surfactants and CO2 Foams for High-Temperature and High-Salinity Sandstone Reservoirs