Cortical and deep brain stimulation for functional recovery and reducing complications after stroke