Technologies for stimulating the brain and controlling the mind can have benefits, but they have a dark side that military and intelligence planners have been exploiting for decades