A general recurrent state space framework for modeling neural dynamics during decision-making