scattering factor and structure factor