Lähetä tietue sähköpostilla: A computational framework for the study of confidence in humans and animals