Skeletonization of 3D binary volumes