When the federal state of Germany was established on January 18,1871 what individual was proclaimed German Emperor and was thus the last king to rule Prussia?