How Democracies Lose Small Wars