The benefits of humanising ghosts: the demon queller in the popular imagination in early modern China and Japan