Sensitivity analysis for the Euler equations in Lagrangian coordinates