Process and apparatus for reducing the content of nox and n2o in gases