Detecting intervention effects with a cognitive diagnostic model for learning trajectories