Power factor compensation of ac/dc converters using a neural controller