Response speed, amplitude, and resistance to extinction as joint functions of work and length of behavior chain.