A comparison of the optical properties of crystalline and amorphous CdS