Cognitive functioning and adjudicative competence: defendants referred for neuropsychological evaluation in a psychiatric inpatient setting*