crime and mental competency