Electromagnetic modelling of ridged waveguide