In what year was the city annexed to the German Empire