Production and reduction of nitrous oxide in agricultural and forest soils