Metapopulation dynamics across gradients - the relation between colonization and extinction in shaping the range edge