Stability of solid films under ion irradiation