A class of one-dimensional geometric variational problems with energy involving the curvature and its derivatives: a geometric measure-theoretic approach