Dynamic gratings and other applications of dispersion