Artificial Intelligence in Smart Cities—Applications, Barriers, and Future Directions: A Review | Synapse