From pilgrimage to complaint: medieval and early modern literary genres of urban malaise and individual mobility