NO2 reduction and amide bond formation in a one-pot, two-step procedure