Controller design for stabilizing bilinear systems with state-based switching. (August 2021)