Effect of routing and machine flexibility on performance of manufacturing systems