Analysis of anatomical and functional determinants of obstructive sleep apnea