Grain boundary inhomogeneity and grain boundary heterodiffusion