Bearing and Gear Fault Detection Using Artificial Neural Networks