Attribution of diabetes to the development of severe liver disease in the general population