high blood sugar and liver failure