N biogeochemical cycle and its impacts on environments in an agro-forest ecosystem