Quantitative Characterization of Foam Transient Structure in Porous Media and Analysis of Its Flow Behavior Based on Fractal Theory