Modeling and Shaping Human-Machine Interactions in Closed-loop, Co-adaptive Neural Interfaces