Programmable shunt regulators