Instability and dynamic behavior of arc attachments on electrodes and the effect on electrode erosion