Training neural networks with synthetic electrocardiograms