Diffusion along grain boundaries with non-equilibrium structure