Where was most of the territory the United States acquired during the nineteenth century located?