Analysis of Optical Properties and Structure for CdS Films