Molecular structure and spectral properties of thionaphthalimides