Microwave cavity perturbation technique for measurements of the quantum Hall effect