Preexisting diabetes, serum calcium and D-dimer levels as predictable risk factors for pancreatic necrosis of patients with acute pancreatitis: a retrospective study