In 1873, greed, speculation and overinvestment in railroads sparked a financial crisis that sank the U.S. into more than five years of misery