With the forced abdication of Emperor William II in 1918, Germany became a republic. In what year was William II crowned as Emperor