Race and U.S. Foreign Policy in the Ages of Territorial and Market Expansion, 1840-1900