Bragg scattering and the spin structure factor of two-component atomic gases