Federated Learning Model Training Mechanism with Edge Cloud Collaboration for Services in Smart Cities