Effective dielectric constant of two phase systems: Application to mixed conducting systems