The response of species to global warming depends on how different populations are affected by increasing temperature throughout the species