Melancholy Kings on the margins of society and geography in medieval literature