Text this: Doubly Bayesian analysis of confidence in perceptual decision-making