Diagnosis and management of acute liver failure