A gated integrator for Ge(Li) detectors