Nanoparticles Stabilized Carbon Dioxide Foams in Sandstone and Limestone Reservoir