The effect of boundary conditions in ion mixing of multilayered NiSi samples