Modelling the ecological consequences of global climate change