Text this: Energy-efficient federated learning with resource allocation for green IoT edge intelligence in B5G