Cordilleran tectonic transitions and motion of the North American plate