Development of electrodes for stimulation and recording neural activity