Understanding FACTS controllers