Foam-Oil Displacements in Porous Media: Insights from Three-Phase Fractional-Flow Theory