Mechanically ruled diffraction gratings for synchrotron radiation