On the rate of convergence of deterministic and randomized RAS matrix scaling algorithms