Cognitive impairment in alcoholic and nonalcoholic cirrhotic patients