A generalized method for analysis of three-dimensional extrusion of arbitrarily-shaped sections