Optimization of Vertical Distribution of Canopy Nitrogen