Comparison of the effective medium and the Maxwell-Garnett predictions for the dielectric constants of granular metals