Compositional inhomogeneities along the growth direction of substituted yttrium iron garnet epilayers