Exposure to physical and sexual violence prior to imprisonment predicts mental health and substance use treatments in prison populations.