Long nanoneedle-electrode devices for extracellular and intracellular recording in vivo