Convex minimization and phase field models