Electrical discharge machining of advanced ceramics