Fast electro-optic switching for coherent laser ranging and velocimetry