First-principles investigation of optoelectronic properties of novel SnS2 with a cubic structure