The analytic structure of trigonometric S-matrices