Change in wavelength in different media