An improved model to predict the effects of changing biodiversity levels on ecosystem function