Generalized Selective Harmonic Control