Compartmental-model response function for dendritic trees