Monte Carlo calculation of compressibility factors and internal energies of homonuclear diatomic molecules