What was one of the main source of conflicts between the European monarchs and the pope during the Middle Ages