Functional types, climatic change and species richness