UPFC Operating Point Evaluation to Solve Static Security and Dynamic Stability Problems by Genetic Algorithms