Direct and inverse problems solutions for coaxial and waveguide probes