A numerical approach to joint continuous and impulsive control of Markov chains