Estimation of local and nonlocal contributions to the current-induced magnetization switching