The dynamics of nitrogen in the atmosphere-vegetation-soil system