Integrated warehouse and material flow planning with MAGELLAN