Computational framework to predict and shape human–machine interactions in closed-loop, co-adaptive neural interfaces | Synapse