what led to the rapid growth of the railroad industry in the united states in the second half of the nineteenth century?