Flop: feedback local optimality control of the inverse pendulum oscillations