With the forced abdication of Emperor William II in 1918, Germany became a republic. What was implemented that separated East Prussia from Germany?