Legal system involvement and costs for persons in treatment for severe mental illness and substance use disorders.