Dipole antennas based on SI-GaAs:Cr for generation and detection of terahertz radiation