What is the importance of determining the wavelength and frequency of the electromagnetic waves?