On the band gap location and core spectra of orthorhombic IV–VI compounds SnS and SnSe