Extended cocaine-seeking produces a shift from goal-directed to habitual responding in rats.