Health selection and the effect of smoking on mortality