Shape optimal design of mechanical components