On the role of gas-phase reactions in the mechanism of the selective reduction of NOx