Agent-based simulation for improving resilience of supply chains