Diagnostics of Ball Bearings in Varying-Speed Motors by Means of Artificial Neural Networks