Traits as units for prediction in ecological responses to climate change