Structural alterations in the surface layer during hard machining