Design of manufacturing systems