Cmos Circuits For High-Density Neural Interfaces And Nanowire Sensor Arrays