The Use of the Herglotz Function Method to Reconstruct Obstacles from Real and from Synthetic Scattering Data