Neural substrates of cognitive flexibility in cocaine and gambling addictions