Electro-optical stabilization of a subnanosecond lifetime spectrometer