Automated tissue segmentation of MR brain images in the presence of white matter lesions