how prison affects mental health