Degen agrees Stuttgart terms