Plastic deformation of porous metal with an initial inhomogeneous density distribution