. . . "However, a relatively greater proportion of persons with substance abuse, mental retardation, or other conditions who did not meet civil commitment criteria for mental illness were committed for pretrial evaluation." .