The transformation of nitrogen oxides in the polluted troposphere