Association of substance use and other psychiatric disorders with all-cause and external-cause mortality in individuals given community sentences in Sweden: a national cohort study