How did the US become an imperialistic nation of the Spanish-American War?