Finite element analysis of fluid imbibition in a deformable porous medium saturated by three immiscible fluids