A detector for submillimiter gamma cameras