calculate dielectric constant