The prevalence of substance use disorders and psychiatric disorders as a function of psychotic symptoms.