Effective diffusivity of solute in multiphase materials with segregation