An integrated-circuits based variable power supply for electrochemical etching