Judge accepts theater shooting suspect's insanity plea