Federated Learning and its Applications in Communications