Impact of diabetes duration and chronic pancreatitis on the association between type 2 diabetes and pancreatic cancer risk