Diagnosis of atrial fibrillation from surface electrocardiograms based on computer-detected atrial activity