A photosynthate allocation model for tree growth