Plant root distributions and nitrogen uptake predicted by a hypothesis of optimal root foraging