Integrative modelling reveals mechanisms linking productivity and plant species richness