Transformer impedance and reactive power compensation device selection