who won the spanish-american war and in what year was it fought