What is the primary function of the small intestine in the human digestive system?