Image analysis of the spinal cord in MRI for multiple sclerosis studies