The Role of Artificial Intelligence in Managing Emergencies and Crises within Smart Cities