Some properties of the spectral flow in semiriemannian geometry