The dielectric constant of H2, D2, and HD in the condensed phases