Mathematical Procedure for Harmonic Elimination in CHB Multilevel Inverters with Variable DC Sources