In what war was the German Empire defeated?