Automatic detection of atrial fibrillation and flutter by wave rectification method.