On-line Quality Control of DC Permanent Magnet Motor using Neural Networks