Wireless smart tag with potentiometric input for ultra low-power chemical sensing