N and P balances in farmland ecosystem and their response to fertilizers