Artificial Neural Network Based Harmonic Optimization of Multilevel Inverter to Reduce THD