Nonsteady three‐phase immiscible fluid distribution in porous media