Thermal analysis of a laser pulse for discrete spot surface transformation hardening