Control of thermal runaway via optimal bifurcation tailoring aided gain-scheduling feedback