Text this: Authority and identity in medieval Islamic historiography