A comparison of four different digital algorithms for pulse-shape discrimination in fast scintillators