Gravitating stationary dyons and rotating vortex rings