The Structure of Powers of Nonnegative Matrices I. The Index of Convergence