Monte Carlo calculations for the photofractions and energy loss spectra of Ge(Li) semiconductor detectors