Inference in Hybrid Bayesian Networks with Deterministic Variables