Stochastic Binary-Ternary Quantization for Communication Efficient Federated Computation