when was the spanish-american war fought