Nuclear structure factors for general spin-independent WIMP-nucleus scattering