Misalignment measurement of femtosecond electron bunches with THz repetition rate