Theoretical structure of a magnetospheric plasma boundary: Application to the formation of discrete auroral arcs