Event-Driven Nonlinear Discounted Optimal Regulation Involving a Power System Application