A thermodynamical formalism for Kähler-Einstein metrics on log Fano manifolds and applications