Near Optimal Closed-Loop Control. Application to Electric Power Systems