Grating spin echoes