Habitat distribution affects connectivity and population size in migratory networks