Effect of ion irradiation on the thermal stability of thin polymer films