Analysis of sensory and decision-making processes in the detection of faint, uncertain stimuli