Globally convex variational model for multiphsae image segmentation