Controlled Markov chains with discounted risk-sensitive criteria: Applications to machine replacement