Training helps workers defuse incidents with mentally ill inmates