What was a similarity between the united states troops sent to the spanish-american war and the troops sent to fight in world war i?