A Variational Level Set Approach to Segmentation and Bias Correction of Images with Intensity Inhomogeneity