Dynamics of current-driven magnetic domain walls and skyrmions