Joining and machining of CMCs