Acute and chronic intracranial recording and stimulation