Explain the difference between semantic segmentation and instance segmentation in the context of identifying manufacturing defects.