Real-time observation of electrical vortex core switching