Spatio-temporal electrical stimuli shape behavior of an embodied cortical network in a goal-directed learning task