what is the major digestive function of the pancreas?