Why did the transcontinental railroad have an impact on opening the west to settlement?