An integral equation method for the analytic continuation of theS-matrix