Theoretical aspects of laser annealing