Design and optimisation of THz and mm-wave components for communications