Fast and controllable switching the circulation and polarity of magnetic vortices