Temporal basis function models for closed-loop neural stimulation | Synapse