Theoretical and numerical analysis of stresses in a laser hardening model