Design of supply networks with optimized safety stock levels