How did the U.S. foreign policy change from isolationism to interventionism in the late 19th and early 20th centuries?