Determination of ionic and pure electronic contributions to the electro-optic coefficient of Cadmium Telluride and Gallium Arsenide single crystals