Particle Swarm Optimized Federated Learning For Industrial IoT and Smart City Services