Hepatic encephalopathy in patients with acute decompensation of cirrhosis and acute-on-chronic liver failure