How do dendrites help the function of a nerve cells