Optical quality control and assembly inspection of an electronic product