Curvature-dependent energies: a geometric and analytical approach