Manufacturing defect detection