Using capacitors for reactive power compensation