An Experimental Investigation of Foam Flow in Homogeneous and Heterogeneous Porous Media