How did the economy of the United States change after the Civil War time period?