Role of endoscopy in inflammatory bowel disease