Analysis of Metal Forming by the Rigid-Plastic Finite Element Method Based on Plasticity Theory for Porous Metals