Using the Waveguide Mesh in modelling 3D resonators