Simulation of the crystallization of thin films by rapid thermal processing