Measurement of Axially Inhomogeneous Permittivity Distributions in Resonant Microwave Cavities