Electronic structure and thermoelectric properties of Sn1.2−xNbxTi0.8S3 with a quasi-one-dimensional structure