Intelligence, psychosis, and competency to stand trial.