Optimal location and control of flexible alternating current transmission system devices for oscillations damping