Calculated temperature distribution during laser annealing in silicon and cadmium telluride