how did the railroad affect travel across the country?