The effect of metal composition structure on the diffusion of components along grain boundaries