Optimal design of material handling in automatedmanufacturing systems