Nanoparticle-enhanced Foam in Carbonate and Sandstone Reservoirs