Federated learning under importance sampling