Predictors of length of stay in forensic psychiatry: the influence of perceived risk of violence.