Ablation study in the capillary discharge of an electrothermal gun