Simulation of transformations of thin metal films heated by nanosecond laser pulses