Building legitimacy :political discourses and forms of legitimacy in medieval societies