On the stability of magnetically levitated rotating rings