Crystallization of amorphous thin films during heavy-ion irradiation