Using forest structure to model vertical variations of canopy radiation and productivity