Mechanism of deep gel plugging emplacement in a nonhomogeneous reservoir