Model-based analysis of implanted hypoglossal nerve stimulation for the treatment of obstructive sleep apnea.