Which factor most contributed to the United States becoming a mor multicultural society during the late 1700s and early 1800s.