who were all the countries involved in the spanish american war