Optical transforms : their preparation and application to X-ray diffraction problems