A Hybrid CNN-Logistic Regression Model for Accurate Classification of Casting Defects