Classification of voluntary cough sound and airflow patterns for detecting abnormal pulmonary function