Longitudinal associations between pain and substance use disorder treatment outcomes.