Smoking among inpatients in treatment for substance use disorders: prevalence and effect on mental health and quality of life