Cooperative role of the nucleus accumbens shell and core in behavioral adaptation to environmental change