Laser heating of titanium and steel: Phase change at the surface