Thyristor SMES control for optimised real and reactive power compensation