An accurate and efficient method to train classifiers for atrial fibrillation detection in ECGs