Ecological resilience and resilient cities