Lattice and electronic properties and g-value of Pb1−xSnxTe