A finite element analysis of multiphase immiscible flow in deforming porous media for subsurface systems