A quantitative extension of the Perron-Frobenius theorem for doubly stochastic matrices