A modern machine-learning approach to reveal the role of multiple sclerosis lesions in inducing cortical tissue loss