Estimating the masses of Saturn's A and B rings from high-optical depth N-body simulations and stellar occultations