A characterization of the optimal risk-sensitive average cost in finite controlled Markov chains