Nanoparticle Stabilized Foam in Carbonate and Sandstone Reservoirs