Optimal gas withdrawal strategy in reconstructed ring-type pipelines under unsteady flow conditions