Who was the military general who declared himself as the emperor of France despite the existence of a republican government?