Factors associated with poor sleep quality in patients with multiple sclerosis differ by disease duration.