Health-related quality of life in outpatients with substance use disorder: evolution over time and associated factors