Avoidance, escape, and extinction as functions of shock intensity.