Application of Mahalanobis Distance for the Automatic Inspection of Solder Joints