Impacts of habitat fragmentation in a warming world