New development of HgI2 X-ray and soft gamma ray detector for synchrotron radiation research and dosimetry applications