HgI2-Based Metal Oxide Detector for Improving the X-ray Response Properties in Radiotherapy