Atrial Fibrillation Detection Using RR-Intervals for Application in Photoplethysmographs