Study of the phenomena occurring in the surface layer during the machining of glass and carbon fiber reinforced plastic