Dynamical theory: Application to spin-echo resolved grazing incidence scattering from periodic structures