Stator Fault Detection for a BLDC Motor Using an Artificial Neural Network