Smart cities to improve resilience of communities