Effects of alterations in pulmonary function and sleep variables on survival in patients with amyotrophic lateral sclerosis.