How did the War of 1812 affect the economy of the United States?