Towards a smart city: resilience and sustainability before technological competition