Transfer Learning for Automated Optical Inspection