Stimulation and recording of neural tissue, closing the loop on the artifact