Numerical minimization of functionals with curvature by convex approximations