Dynamic variation of arc discharge and its effect on corrosion direction under current-carrying sliding