Adjustable resonant cavity for measuring the complex permittivity of dielectric materials