Exact curvature elastica of a thin cantilever under terminal loads