Nocturnal sound analysis for the diagnosis of obstructive sleep apnea