Measurement of constitutive parameters using the Mie solution of a scattering sphere