Accurate time domain analysis of microwave and optical signal interaction in electro-optic devices