Metric-based mesh adaptation for 2D Lagrangian compressible flows