Hybrid grating–prism dispersion eraser