Effects of near-Earth stochastic acceleration and reflections of magnetotail ions on the formation of auroral arcs