reactive power compensation calculation