Current-induced switching of domains in magnetic multilayer devices