Characterization of (Cd,Mn)Te and (Cd,Mg)Te single crystals in the THz frequency range using integrated photoconductive and electro-optic effects