About 350,000 Americans with a diagnosis of a severe mental illness like schizophrenia or bipolar disorder are in state jails and prisons, while the number of psychiatric beds available has shrunk to 35,000, according to a coming analysis by the Treatment Advocacy Center, a nonprofit group that favors expanded access to treatment.