Effect of shape anisotropy on threshold current density for current-induced domain wall motion