Machining technology for composite materials