Formally exact solution and geometric phase for the spin-j system