The hazards that many migrants have faced are a measure of the strong lure of new locations and the desperate conditions in their former homelands.