Spectra of irreducible matrices