Self-trapping of electrons in vortex rings in liquid helium