On the Witten index in terms of spectral shift functions I