A model of the coupled dynamics of climate, vegetation and terrestrial ecosystem biogeochemistry for regional applications