Smartphone device detects atrial fibrillation