Forecasting forest diversity under the influence of climatic changes and the consequences for stability and productivity of forest ecosystems