On minimization of some non-smooth convex functionals arising in micromagnetics