Origins of the rings of Uranus and Neptune: 2. Initial conditions and ring moon populations