A fast digital filter algorithm for gamma-ray spectroscopy with double-exponential decaying scintillators