Thermal design and experimental analysis of laser and electron beam hardening