Modulation of the laser power to prevent hot cracking during laser welding of tempered steel