Linking habitat use to range expansion rates in fragmented landscapes: a metapopulation approach