Electronic structure and optical properties of polysulfur nitride, (SN)x