Climate change, diversity patterns and ecosystem functioning