Automated detection of atrial fibrillation from the electrocardiogram channel of polysomnograms