AOI defect detection explained: methods, workflow, and implementation guide