All fiber-coupled THz-TDS system with kHz measurement rate based on electronically controlled optical sampling