Digital Pulse-Processing Techniques for X-Ray and Gamma-Ray Semiconductor Detectors