Constraint-Based Learning for Continuous-Time Bayesian Networks