Two-factor theory, the actor-critic model, and conditioned avoidance