PWM for the HAPF; minimum inverter capacity design procedure of HAPF, adaptive dc-link