Determination of the electric field and its Hilbert transform in femtosecond electro-optic sampling