The effective diffusion coefficient of a two-phase material