A nanoelectrode array for obtaining intracellular recordings from thousands of connected neurons