A simulation tool for supply chain design and optimization