Role of endoscopic ultrasonography in the diagnosis of acute and chronic pancreatitis.