Atomic-potential parameters for H2 and D2: quantum corrections in the calculation of second-virial coefficients