Li compensated PIN gamma-ray detectors