Scattering Rigidity for Analytic Riemannian Manifolds with a Possible Magnetic Field