Degree of dependence influences the effect of smoking on cognitive flexibility