Electrolytic etching or polishing