Who gets diverted into treatment? a study of defendants with psychosis