Automated definition of mid-sagittal planes for MRI brain scans