Swarm Intelligence and IoT-Based Smart Cities: A Review