Inference in Hybrid Networks: Theoretical Limits and Practical Algorithms