Technical University of Denmark (DK) NUSOD contributions 2017 - Copenhagen ThB2 — Fundamentals for a terahertz-driven electron gun