Method and apparatus for control of a series-compensated invertersSystem