Linear-System-Based Selective Harmonic Elimination Solution for Multilevel Inverters