Optimum allocation of reactive power in AC/DC power systems