Stability of different types of power factor correction