A two-level approach for optimal freight handling in distributed supply chain