How do dendrites help the function of nerve cells