Impaired vigilance is associated with erectile dysfunction in patients with sleep apnea.