Causal learning in rats and humans