Accurate dynamical structure factors from ab initio lattice dynamics: The case of crystalline silicon