The thermodynamic properties of the gaseous dimer of CdI2