Ecosystem resistance in the face of climate change