Adaptive Cavity for Complex PermittivityMeasurement of Rock Materials