Using justice and health data to improve the identification of mental illness