Discriminated avoidance learning