Diamond structure recovery during ion irradiation at elevated temperatures