The validation of smartphone applications for heart rate measurement