Graphs, charters, recipes: challenges of modelling medieval genres with the TEI