A neural network approach to real-time dielectric characterization of materials