Analytical S-parameter Solver for a Dielectric Sample in a Waveguide