Variational Principle for Irreducible Shifts of Finite Type