Destruction of coating material during spark anodizing of titanium