How to get the frequency of a wavelength?