Minimum classification error-based neural network for inspection of fabric defects