Hybrid Local SGD for Federated Learning with Heterogeneous Communications