Resilience and sustainability the key to future megacities