Design and performance of a THz emission and detection setup based on a semi-insulating GaAs emitter