An Artificial Neural Network Approach for Solving the Harmonic Distortions Elimination in Multilevel Converters