Fractal analysis of invasion depth of extraneous fluids in porous media