Automated segmentation of teeth from CBCT images