Compliance and Utility of a Smartphone App for the Detection of Exacerbations in Patients With Chronic Obstructive Pulmonary Disease: Cohort Study