Diffraction from moving gratings: negative energy solutions and relativistic effects