Military intervention and sources of legitimacy