Optimal control of supersonic inlets to minimize unstarts