The structure factor for neutron scattering from a two-state system in metals