Dynamical Structure Factors in Quantum Many-Body Systems from Quantum Monte Carlo Calculations