Impaired motion perception is associated with functional and structural visual pathway damage in multiple sclerosis and neuromyelitis optica spectrum disorders