Energy-Efficient Federated Learning With Resource Allocation for Green IoT Edge Intelligence in B5G