Simulation and Control Techniques of FACTS