How did the Spanish-American War lead to the Filipinos rebelling against the United States?