Survival in patchy landscapes: the interplay between dispersal, habitat loss and fragmentation