Reactive power calculation of three-phase capacitors