Digitally programmable current amplifier