A Temporal Difference Reinforcement Learning Theory of Emotion: unifying emotion, cognition and adaptive behavior