Optical sampling using wideband electro-optic modulators