Sojourn times, singularities of the scattering kernel and inverse problems