Investigation of New Algorithms for Estimation of Losses in Microwave Devices Based on a Waveguide or a Meander Line