God and his saints in medieval Catalonia