Electro-optic techniques for nanosecond imaging and applications to fluorescence lifetime microscopy