Distributed FACTS for power system transient stability control