How would you explain the difference between semantic segmentation and instance segmentation for manufacturing defect detection?