TransferD2: Automated Defect Detection Approach in Smart Manufacturing using Transfer Learning Techniques