Text this: Morphological image segmentation for detection and classification of PCB defects