Accurate modelling of microwave PBG-based Devices for Particle Accelerator Design