Failure generates impulsivity only when outcomes cannot