L-GreCo: An Efficient and General Framework for Layerwise-Adaptive Gradient Compression