Power swing damping control by HVDC power modulation in an ac/dc hybrid transmission system and automated procedure to manage power transfers through power transmission and distribution networks