Quasi-static and propagating modes in three-dimensional THz circuits