A cognitive process model captures near-optimal confidence-guided waiting in rats | Synapse