An improved scheme for a Robin boundary condition in discrete-time random walk algorithms