Basis-Function Trees as a Generalization of Local Variable Selection Methods for Function Approximation