Study of shock waves interacting with Ar and N2 low pressure dc discharges