Rate-Constrained Quantization for Communication-Efficient Federated Learning