A Generalization of Input-Output Linearization via Dynamic Switching Between Melds of Output Functions