Extracting the dynamics of behavior in sensory decision-making experiments