Automated thresholding method for the computed tomography inspection of the internal composition of parts fabricated using additive manufacturing