Finite-element analysis of localization of deformation and fluid pressure in an elastoplastic porous medium