Combining cues and recalibrating priors for accurate perception