Efficient Computer Determination of the Properties of Waveguide Loaded Cavities