On the formation of auroral arcs and acceleration of auroral electrons