Double gratings and their applications as Fabry-Perot interferometers