A General Three-Dimensional Finite Element Approach for Porous and Dense Metal Forming Processes