Fear, avoidance and safety signals as rewards