electromagnetic radiation in the form of waves has both a wavelength and a frequency