Theoretical investigation of a free-electron maser operating with a TEM transmission line