Determination of wavelength of light by diffraction method