Scaling from individuals to ecosystems in an Earth System Model using a mathematically tractable model of height-structured competition for light