Effect of energetic ion irradiation on CdI2 films