Quasi-optical model of relativistic surface-wave generators for millimeter and submillimeter range