Optimizing the range of a bilateral filter to enhance defects and threads visibility in x-ray radiographic testing