Stuttgart relegated on final day of Bundesliga season