added electrode impedance measurement tool

Ported Lead-Off detection functions from ADSManager.
configure_Zdetect sets fuses in the LOFF register.
changeChannel_Zdetect selects the channel and input for signal
insertion.