Direct observation of a force-induced switch in the anisotropic mechanical unfolding pathway of a protein