Mechanisms of white matter in multiple sclerosis and neuromyelitis optica