how is insanity defined