SMS: Answering queries in hybrid Bayesian networks using importance sampling