Studying cognitive functions by means of direct electrical stimulation: a review