Design and test of a beam-pulsing electronics system for low-energy positron lifetime spectroscopy