The design of apparatus for improving the power factor of alternating-current systems