Study of the compositional inhomogeneity of graft copolymers by the diffusion method