Mechanisms of adjustments to different types of uncertainty in the reward environment across mice and monkeys