Electrical discharge machining of cast metal matrix composites