Theoretical Analysis of the Electrical and Optical Properties of ZnS