Changes in nitrogen and phosphorus flows and losses in agricultural systems of three megacities of China, 1990–2014