A multi-scale model to explore carbon allocation in plants