Distortions identification and compensation based on artificial neural networks using symmetrical components of the voltages and the currents