How many Mexicans lived in the territories that the United States won in the Mexican War?