On the origin of Uranus' rings