Analytical and numerical techniques for modelling terahertz plasmonic devices