Importance sampling for continuous time Markov chains and applications to fluid models