Minimisation of total harmonic distortion in a cascaded multilevel inverter by regulating voltages of DC sources | Synapse