A Generalized Formulation for Permittivity Extraction of Low-to-High-Loss Materials From Transmission Measurement