A Resonant-Cavity Method for Measuring Dielectric Properties at Ultrahigh Frequencies