Diffusion in one-dimensional disordered systems: An effective-medium approximation