Optimality and nitrogen allocation in a tree canopy.