Scattering rigidity for analytic metrics