Convex components of a set and the measure of its boundary