William of Tyre and the art of historiography