A Modified MRF Algorithm Based on Neighborhood Spatial Information for MRI Brain Tissue Segmentation