What two empires formed the kingdom of Germany