First-principles calculations for electronic, optical and thermodynamic properties of ZnS