Impurity levels in PbTe and Pb1−xSnxTe