Performance Optimization for Variable Bitwidth Federated Learning in Wireless Networks