Reactive power compensation in electrical networks