Species climatic niche and drought-induced forest dynamics