3D tooth segmentation in cone-beam computed tomography images using distance transform