A quantitative explanation of low-energy tailing features of Si(Li) and Ge X-ray detectors, using synchrotron radiation