Static dielectric constant of heavily doped semiconductors