Study of the measurement for electron bunches and the irradiation effect by femtosecond electro-optic sampling