Cost-effective design of AC/DC converter with programmable power amplification