are period and wavelength inversely related