Ecosystem complexity explains the scale-dependence of ammonia toxicity on macroinvertebrates.