Efficient approaches in synthesis and design of multi-mode units for mm and THz devices