Using Bayesian networks to create synthetic data