Error correction algorithm for high accuracy bio-impedance measurement in wearable healthcare applications