Competition for water and light in closed-canopy forests: a tractable model of carbon allocation with implications for carbon sinks