Predisposition to diabetes is related to insulin resistance in NAFLD patients and to decreased insulin secretion in HCV patients