Text this: Linaje y legitimidad en la historiografía regia hispana de los siglos IX al XIII