Optimization of modular die design in extrusion process