William of Tyre: The making of an historian in the Middle Ages