The optical properties of thin films of cadmium and zinc selenides and tellurides