Optimum design of mechanical components under stress using finite element analysis and nonlinear programming