Analysis of hot forging of porous metals