Neural network approach for power factor correction of PWM ac/dc voltage source converters