Investigation of planar terahertz passive devices and coupling methods for on-wafer applications