Foam in Porous Media: Characteristics and Potential Applications