Federated optimization via knowledge codistillation