Spatiotemporal pulse shaping using resonant diffraction gratings.